package com.chen.service;

import com.chen.dao.DetailMapper;

import com.chen.pojo.MedicalAssay;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@CacheConfig
public class DetailServiceImpl implements DetailService{
    @Resource
    private DetailMapper detailMapper;

    @Override
    public List<MedicalAssay> queryAll() {
        return detailMapper.queryAll();
    }

    @Override
    public List<MedicalAssay> queryAllById(String name) {
        return detailMapper.queryAllById(name);
    }

    @Override
    public int add(MedicalAssay medicalAssay) {
        return detailMapper.add(medicalAssay);
    }

    @Override
    public int update(MedicalAssay medicalAssay) {
        return detailMapper.update(medicalAssay);
    }
}
